// 打印用户名
var username = localStorage.getItem('user_addr');
console.log(username);
// 打印密码
var useraddr = localStorage.getItem('user_phone');
console.log(useraddr);
//打印id
var id=sessionStorage.getItem('pro_id');
console.log(id);

var num=sessionStorage.getItem('num');
console.log(num);
// 图片img
var img_url = "http://47.92.37.168/supermarket/img/";

var num_cart = 0;
var total_price = 0;
var flag_tab = true;


//点击天猫超市展开，收起商品列表
$('.div2-a').click(function () {
    if (flag_tab) {
        $('#div3').hide();
    } else {
        $('#div3').show();
    }
    flag_tab = !flag_tab;
})

